/**
 * Copyright (C) Sarah Mount, 2008.
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 **/

enum {
 	AM_SAMPLEMSG = 7,     // Group ID of active messages sent by DingoBoom
 	BUFFER_SIZE  = 6 * 2, // Should be a multiple of # modalities
};

// CHANNEL NUMBERS
enum modality { 	
 	SENSE_LIGHT   = 0x01, 
 	SENSE_ACCEL   = 0x02, 
 	SENSE_BUTTON  = 0x04, 
 	SENSE_TEMP    = 0x08, 
 	SENSE_VOLTAGE = 0x10, 
 	SENSE_SOUND   = 0x20,
};

// Messages sent by DingoBoom contain a single sample of sense data
typedef struct SampleMsg {
	uint16_t sourceMoteID;
	uint16_t accelY; // Accel data is 2d
	uint16_t sample;
	enum modality channel; 	
} SampleMsg;
